<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改车辆信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-vehicleinformation-edit" th:object="${vehicleinformation}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">车牌号：</label>
                <div class="col-sm-8">
                    <input name="platenumber" th:field="*{platenumber}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">名称型号：</label>
                <div class="col-sm-8">
                  <!--  <select name="nametype" class="form-control m-b" required>-->
                        <input name="nametype" th:field="*{nametype}" class="form-control m-b" type="text" required>
                    </select>
               <!--     <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车辆类型：</label>
                <div class="col-sm-8">
                   <!-- <select name="vehicletype" class="form-control m-b" required>-->
                        <input name="vehicletype" th:field="*{vehicletype}" class="form-control m-b" type="text" required>
                    </select>
                  <!--  <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">经营范围：</label>
                <div class="col-sm-8">
                    <input name="businessscope" th:field="*{businessscope}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车身颜色：</label>
                <div class="col-sm-8">
                    <input name="colour" th:field="*{colour}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                   <!-- <input name="state" th:field="*{state}" class="form-control" type="text" required>-->
                    <select class="col-sm-3 control-label" name="state" th:field="*{state}" required style="width: 300px">
                        <option value ="0">正常</option>
                        <option value ="1">报废</option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车主名称：</label>
                <div class="col-sm-8">
                    <input name="personnelname" th:field="*{personnelname}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">车主身份证：</label>
                <div class="col-sm-8">
                    <input name="reserve1" th:field="*{reserve1}" class="form-control" type="text">
                </div>
            </div>
            <!--<div class="form-group">
                <label class="col-sm-3 control-label">预留：</label>
                <div class="col-sm-8">
                    <input name="reserve2" th:field="*{reserve2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">预留：</label>
                <div class="col-sm-8">
                    <input name="reserve3" th:field="*{reserve3}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">预留：</label>
                <div class="col-sm-8">
                    <input name="reserve4" th:field="*{reserve4}" class="form-control" type="text">
                </div>
            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/vehicleinformation";
        $("#form-vehicleinformation-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-vehicleinformation-edit').serialize());
            }
        }
    </script>
</body>
</html>